package edu.whut.service;


import edu.whut.entity.Comment;

import java.util.List;

public interface CommentService {

    Boolean addComment(Comment comment);

    Boolean deleteComment(Comment comment);

    List<Comment> getCommentById(Long creationId);

    /**
     * 功能：通过creationId得到评论总数
     * @param creationId
     * @return 评论总数
     */
    Integer getCommentNumber(Long creationId);
}
